package com.zheng.damo01.作业;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        System.out.println("请输入字符串");
        String str=new Scanner(System.in).nextLine();
        StringBuilder sb=new StringBuilder();
        sb.append(str);
        String str1 = sb.reverse().toString();
        System.out.println("回文数"+str1.equals(str));

    }
}
